#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
    double f = 0;
    scanf("%lf", &f);
    double c = 0;
    c = (5 * (f - 32)) / 9;
    printf("%.3f\n", c);

    return 0;
}